<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<h1>
				展现数据:{{num}}
				<button v-on:click="num++">自增</button>
				<button @click="addNum">自增函数</button>
			</h1>
		</div>
		<script src="../js/vue.js"></script>
		<script>
			var app = new Vue({
				el: "#app",
				data: {
					num : 100
				},
				methods: {
					addNum: function(){
						this.num ++
						}
				}		
			})
		</script>
	</body>
</html>
